#ifndef SEKEYBOARD_H
#define SEKEYBOARD_H

#include <qpa/qplatforminputcontext.h>
#include "keyboardform.h"
#pragma execution_character_set("utf-8")
class SeKeyBoard : public QPlatformInputContext
{
    Q_OBJECT
public:
    SeKeyBoard();
    ~SeKeyBoard();

    bool isValid() const Q_DECL_OVERRIDE;
    void setFocusObject(QObject *object) Q_DECL_OVERRIDE;
    void showInputPanel() Q_DECL_OVERRIDE;
    void hideInputPanel() Q_DECL_OVERRIDE;
    bool isInputPanelVisible() const Q_DECL_OVERRIDE;

    bool isDialogParent(QWidget* _widget);
private:
    void sendKeyToFocusItem(const QString &keytext);

    KeyboardForm *m_keyboard;
    QObject *m_focusitem;
    QWidget* testParent;
};

#endif // SEKEYBOARD_H
